package com.itheima.demo01;

public class Dog extends Animal implements Swim{


    public Dog() {
    }

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() { //重写抽象方法
        System.out.println("狗在吃骨头");
    }

    @Override
    public void swim() {
        System.out.println("狗游泳");
    }

    public void lookHome(){
        System.out.println("狗看家");
    }
}
